package events;

import controlPlane.PCE;
import wdmsim.Node;
import wdmsim.Simulator;

public class UpdateEvent extends Update {

	public UpdateEvent(PCE pce) {
		this.id = eventCounter++;
		this.generator = (Node)pce;
		this.handler = pce;
	}
	
	public UpdateEvent(UpdateEvent event) {
		this.id = eventCounter++;
		this.generator = event.getGenerator();
		this.handler = event.getHandler();
	}
	
	public String toString() {
		return Simulator.CURRENT_TIME + " " + getId() + " " + ((Node) getHandler()).getId();
	}
}
